<?php
/**
 * Created by PhpStorm.
 * User: sun
 * Date: 2022/7/8
 * Time: 8:15 AM
 */
namespace app\common\listeners;

use app\common\events\content\ArticleCreatedEvent;
use Illuminate\Contracts\Events\Dispatcher;

class ArticleCreatedListener
{
    public function subscribe(Dispatcher $events){
        \Log::debug('ArticleCreatedListener subscribe');
    }
    public function handle(ArticleCreatedEvent $event){
        $data = $event->getArticle();
        \Log::debug('ArticleCreatedListener $data',$data);
    }
}